﻿using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Text.RegularExpressions;

namespace AudioRename
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Please enter a file prefix. '_' will be added after the prefix");
            string prefix = Console.ReadLine();
            string[] files = Directory.GetFiles(".", "*.wav");
            foreach (string file in files)
            {
                string fileName = Path.GetFileName(file);
                if (Regex.IsMatch(fileName, "[0-9]+\\-[0-9]+"))
                {
                    File.Move(fileName, prefix + "_" + fileName);
                }
            }

        }
    }
}
